.character_main {
  width: 100%;
  min-height: 100vh;
  background-color: #08357d;
  background-image:
    url(../images/2026images/pp-xmas-2026-bottom-bg.png),
    linear-gradient(180deg, #211b53 0, #1f316f 48%, #005881 100%);
  background-position:
    bottom -125px center,
    center;
  background-repeat: no-repeat, no-repeat;
  background-size:
    100% auto,
    100% 100%;
  padding: 0 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.character_main .title_container {
  width: min(575px, calc(100vw - 32px));
  height: 165px;
  margin: 108px 0 30px;
  z-index: 2;
}

.character_main .title_container h3 {
  width: 100%;
  height: 100%;
  padding: 0;
  position: absolute;
  bottom: 0;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  color: #f1c683;
  background: url(../images/2026images/santa-title-shelf.png) 28px 113px / 518px
    34px no-repeat;
  font-family: "Playfair Display", "Noto Sans TC";
  font-size: 32px;
  font-weight: 600;
  line-height: 120%;
  text-shadow: 0 0 5px rgba(42, 25, 5, 0.65);
  text-transform: uppercase;
  white-space: nowrap;
  rotate: 0deg;
  z-index: 2;
}

.character_main .title_container h3 > span {
  position: absolute;
  top: 34px;
  left: 96px;
  width: 354px;
  z-index: 1;
  text-align: center;
  white-space: normal;
}

.character_main .title_container h3 > img {
  position: absolute;
  top: 43px;
  object-fit: contain;
}

.character_main .title_container h3 > img:first-child {
  left: 34px;
  width: 62px;
  height: 84px;
}

.character_main .title_container h3 > img:last-child {
  right: 39px;
  width: 87px;
  height: 83px;
}

.character_container {
  width: 100%;
  max-width: 1280px;
  min-width: 320px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}

.character_main .session_container_peakTime {
  display: none;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .character_main .title_container h3 > span {
    top: 58px;
  }
}

.flip-card {
  background-color: transparent;
  width: 100%;
  aspect-ratio: 340/620;
  min-width: 300px;
  max-width: 340px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.character_container_bottom {
  width: 100vw;
  aspect-ratio: 1440 / 504;
  position: relative;
  margin-top: 19px;
  margin-inline: calc(50% - 50vw);
  pointer-events: none;
}

.character_container_bottom > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 767px) {
  .character_main {
    background-image:
      url(../images/2026images/pp-xmas-2026-bottom-bg.png),
      linear-gradient(180deg, #211b53 0, #1f316f 48%, #005881 100%);
    background-position:
      bottom center,
      center;
    background-size:
      100% auto,
      100% 100%;
  }

  .character_main .title_container {
    width: min(575px, calc(100vw - 32px));
    height: 132px;
    margin-top: 92px;
    margin-bottom: 24px;
  }

  .character_main .title_container h3 {
    background-position: 5% 91px;
    background-size: 90% auto;
    font-size: clamp(20px, 6vw, 32px);
  }

  .character_main .title_container h3 > span {
    top: 26px;
    left: 17%;
    width: 62%;
  }

  .character_main .title_container h3 > img {
    top: 34px;
  }

  .character_main .title_container h3 > img:first-child {
    left: 6%;
    width: 11%;
    height: auto;
  }

  .character_main .title_container h3 > img:last-child {
    right: 7%;
    width: 16%;
    height: auto;
  }

  .character_container_bottom {
    margin-top: 19px;
  }
}

@media (max-width: 640px) {
  .character_main .title_container h3 {
    box-sizing: border-box;
    width: min(504px, calc(100vw - 32px));
    height: 110px;
    padding: 8px 56px 35px;
    background-position: center 70px;
    background-size: calc(100% - 48px) auto;
    font-size: clamp(16px, 5vw, 24px);
  }

  .character_main .title_container h3 > span {
    top: 12px;
    right: 56px;
    left: 56px;
    width: auto;
    white-space: normal;
  }

  .character_main .title_container h3 > img {
    top: 18px;
    height: 64px;
  }

  .character_main .title_container h3 > img:first-child {
    left: 24px;
    width: 47px;
  }

  .character_main .title_container h3 > img:last-child {
    right: 24px;
    width: 68px;
  }
}

@media (max-width: 390px) {
  .character_main .title_container h3 > img {
    top: auto;
    bottom: 28px;
    height: auto;
  }

  .character_main .title_container h3 > img:first-child {
    width: clamp(24px, calc(32.3vw - 79px), 47px);
  }

  .character_main .title_container h3 > img:last-child {
    width: clamp(35px, calc(46.6vw - 114px), 68px);
  }
}
.character-flipbook {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  color: #242711;
}

.character-flipbook__heading {
  display: none;
  text-align: center;
}

.character-flipbook__heading h2 {
  margin: 0;
  color: #00432f;
  font-family: "Autour One", Inter, "Noto Sans TC", sans-serif;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.25;
}

.character-flipbook__heading p {
  max-width: 46rem;
  margin: 12px auto 0;
  font-family: Inter, "Noto Sans TC", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.character-flipbook__book {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.character-flipbook--ready .character-flipbook__book::before {
  content: "";
  visibility: hidden;
  opacity: 0;
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 96.458%;
  height: 96.916%;
  transform: translate(-50%, -50%);
  background: url("../images/2026images/character-book-frame.png") center / 100%
    100% no-repeat;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.character-flipbook--ready .character-flipbook__book--portrait::before {
  background-size: 200% 100%;
  background-position: right center;
}

.character-flipbook--ready .character-flipbook__book--frame-visible::before {
  visibility: visible;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .character-flipbook--ready .character-flipbook__book::before {
    transition: none;
  }
}

.character-flipbook__viewer {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.character-flipbook__viewer.character-flipbook__book--cover-centered {
  transform: translateX(-25%) translateZ(0);
}

.character-flipbook__viewer.character-flipbook__book--back-centered {
  transform: translateX(25%) translateZ(0);
}

.character-flipbook__book--closed .character-flipbook__page--inner {
  visibility: hidden;
}

.character-flipbook__book--cover-transition {
  transition: transform 650ms ease;
  pointer-events: none;
}

.character-flipbook__page {
  box-sizing: border-box;
  width: 100%;
  min-height: 380px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}

.character-flipbook__page-content {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.character-flipbook--ready .character-flipbook__page {
  min-height: 0;
  margin: 0;
  cursor: pointer;
  touch-action: pan-y;
}

.character-flipbook__page img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  max-height: none;
  pointer-events: none;
  object-fit: contain;
  object-position: left center;
  -webkit-user-drag: none;
}

.character-flipbook__page--left img {
  object-position: right center;
}

.character-flipbook__page--cover,
.character-flipbook__page--cover .character-flipbook__page-content {
  overflow: visible;
}

.character-flipbook__page--cover img {
  transform: none;
  transform-origin: center;
}

.character-flipbook__page--inner .character-flipbook__page-content {
  height: 95%;
  min-height: 0;
  width: 100%;
  margin: 0;
  position: relative;
  top: 2.5%;
}

.character-flipbook__page h3 {
  margin: 0;
  color: #00432f;
  font-family: "Autour One", Inter, "Noto Sans TC", sans-serif;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.3;
}

.character-flipbook__page p {
  max-width: 36ch;
  margin: 0;
  font-family: Inter, "Noto Sans TC", sans-serif;
  font-size: clamp(13px, 1.3vw, 16px);
  line-height: 1.5;
}

.character-flipbook__controls {
  display: flex;
  min-height: 52px;
  margin: 26px auto 0;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.character-flipbook__controls[hidden],
.character-flipbook__error[hidden] {
  display: none;
}

.character-flipbook__button {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 52px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.character-flipbook__button img {
  display: block;
  width: 48px;
  height: 52px;
  object-fit: contain;
}

.character-flipbook__button.is-hidden {
  visibility: hidden;
}

.character-flipbook__button:focus-visible {
  outline: 3px solid #c9672b;
  outline-offset: 3px;
}

.character-flipbook__button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.character-flipbook__page-status {
  min-width: 70px;
  margin: 0;
  color: #f1c683;
  font-family: "Playfair Display", "Noto Sans TC", serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.character-flipbook__error {
  margin: 18px auto 0;
  color: #8b1e1e;
  text-align: center;
}

@media (max-width: 960px) {
  .character_main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .character-flipbook {
    max-width: 100%;
  }

  .character-flipbook__viewer {
    max-width: 519px;
    transform: none;
  }

  .character-flipbook--ready .character-flipbook__book--portrait::before {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: none;
    background-image: url("../images/2026images/character-book-frame-mobile.png");
    background-size: 200% auto;
    background-position: right top;
    background-repeat: no-repeat;
    box-shadow: 0 7.293px 8.287px rgba(0, 0, 0, 0.25);
  }

  .character-flipbook__page--inner .character-flipbook__page-content {
    width: 94.0744%;
    height: 98.023%;
    top: 0.994%;
    left: 0;
    margin: 0;
  }

  .character-flipbook__page--inner img,
  .character-flipbook__page--inner.character-flipbook__page--left img {
    object-position: left center;
  }

  .character-flipbook__heading {
    margin-bottom: 0;
  }

  .character-flipbook__heading p {
    font-size: 14px;
  }
}

@media (max-width: 350px) {
  .character-flipbook__page p {
    font-size: 12px;
  }

  .character-flipbook__controls {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .character-flipbook__button {
    transition: none;
  }

  .character-flipbook__book--cover-transition {
    transition: none;
  }
}

/* --- DESKTOP (hover supported) --- */
@media (hover: hover) and (pointer: fine) {
  .flip-card:hover .flip-card-inner {
    animation: flipSpring 0.8s forwards;
  }
  .flip-card:not(:hover) .flip-card-inner {
    animation: flipSpringBackward 0.8s forwards;
  }
}

/* --- MOBILE (no hover) --- */
@media (hover: none) and (pointer: coarse) {
  .flip-card.flipped .flip-card-inner {
    animation: flipSpring 0.8s forwards;
  }
  .flip-card:not(.flipped) .flip-card-inner {
    animation: flipSpringBackward 0.8s forwards;
  }
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-perspective: 0;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  visibility: visible;
  backface-visibility: hidden;
}

.flip-card-back {
  transform: rotateY(180deg);
}

.flip-card-front_top {
  width: 100%;
  aspect-ratio: 327/432;
  background-position: center;
  background-size: 100% auto;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.flip-card-back .flip-card-front_top img {
  opacity: 0.1;
  position: absolute;
  transform: rotateY(180deg);
}

.flip-card-front_top img {
  width: 85%;
  height: auto;
  object-fit: contain;
}
.flip-card-back .flip-card-front_top {
  padding-top: 10%;
}
.flip-card-back .flip-card-front_top p {
  padding: 0px 27px;
  color: #242711;
  text-align: center;
  font-family: Inter, "Noto Sans TC";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
}

.flip-card-front_bottom {
  width: 100%;
  aspect-ratio: 340 / 171;
  background-position: center;
  background-size: 100% auto;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  flex-direction: column;
  /* justify-content: center; */
  background-image: url(../images/2025images/card_bottom.png);
  margin-top: -4px;
  padding-top: 38px;
}

.flip-card-front_bottom p {
  color: #29110b;
  text-align: center;

  /* EN/Sub Title */
  font-family: "Autour One";
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  /* 28px */
}

.redColor {
  background-image: url(../images/2025images/card_red.png);
}

.greenColor {
  background-image: url(../images/2025images/card_green.png);
}

.whiteColor {
  background-image: url(../images/2025images/card_white.png);
}

#character_bear_dad {
  width: 98%;
}
#character_bear_mom {
  width: 48%;
}
#character_babybear {
  width: 48%;
}
#character_fox {
  width: 42%;
}
#character_crocodile {
  width: 70%;
}
#character_rabbit {
  width: 57%;
}
#character_hedgehog {
  width: 93%;
}
.en .hedgehog_name {
  padding-top: 26px;
}
#character_alpaca {
  width: 57%;
}

#character_capy {
  width: 56%;
}
#character_elephant {
  width: 78%;
  position: absolute;
  bottom: 16px;
}
#character_giraffe {
  width: 51%;
  position: absolute;
  bottom: 16px;
}
#character_hippo {
  width: 73%;
}
#character_redpandas {
  width: 79%;
}
#character_hippo_female,
#character_koala {
  width: 100%;
}
.character_main .session_container_peakTime {
  margin-bottom: 56px;
  margin-top: 0px;
  width: 100%;
  max-width: 400px;
}
.character header {
  z-index: 11;
}

.character .character-guide[hidden] {
  display: none;
}

.character .character-guide {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.character .character-guide__button {
  display: flex;
  width: 200px;
  height: 200px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 100px;
  background: rgba(241, 198, 131, 0.3);
  cursor: pointer;
}

.character .character-guide__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.character .character-guide__icon {
  display: flex;
  width: 100px;
  height: 100px;
  align-items: center;
  justify-content: center;
}

.character .character-guide__icon img {
  display: block;
  width: 90px;
  height: 90px;
  transform: translateX(-1px);
}

.character .character-guide__text {
  color: #fcfcfc;
  font-family: "Playfair Display", "Noto Sans TC", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.character .character-guide__button:focus-visible {
  outline: 2px solid #fcfcfc;
  outline-offset: 4px;
}

@media (min-width: 961px) {
  .character .character-guide {
    display: none;
  }
}

@keyframes flipSpringBackward {
  0% {
    transform: rotateY(180deg) translateZ(1px);
  }

  60% {
    transform: rotateY(-20deg) translateZ(1px);
  }

  /* overshoot back */
  100% {
    transform: rotateY(0deg) translateZ(1px);
  }

  /* settle */
}

@keyframes flipSpring {
  0% {
    transform: rotateY(0deg) translateZ(1px);
  }

  60% {
    transform: rotateY(200deg) translateZ(1px);
  }

  /* overshoot */
  100% {
    transform: rotateY(180deg) translateZ(1px);
  }

  /* settle back */
}

.flip-card-inner {
  -webkit-transform-style: preserve-3d;
}

.flip-card-front,
.flip-card-back {
  -webkit-backface-visibility: hidden;
}

.character_main .session_container_peakTime span {
  width: 50%;
  cursor: pointer;
}

.noticePopup .popupTitle {
  margin: 8px auto;
  text-align: center;
}

.noticePopup .popupInner {
  color: #00432f;
  text-align: center;
  font-family: "Autour One";
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%; /* 36px */
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .character .session_container_peakTime span {
    font-size: 14px;
    padding: 8px;
  }
  .character_main .title_container {
    margin-bottom: 48px;
  }

  .character_main .session_container_peakTime {
    margin-bottom: 48px;
    margin-top: 0px;
  }
}

@media (max-width: 350px) {
  .character_container {
    max-width: 300px;
  }
  .flip-card-back .flip-card-front_top p {
    font-size: 14px;
  }
  .flip-card-front_bottom p {
    font-size: 18px;
  }
}

.character-flipbook--closing {
  pointer-events: none;
}

.character-flipbook--closing .stf__block {
  visibility: hidden;
}

.character-flipbook__closing {
  position: absolute;
  z-index: 10;
  perspective: 2000px;
  pointer-events: none;
}

.character-flipbook__closing-leaf {
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform-style: preserve-3d;
}

.character-flipbook__closing-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.character-flipbook__closing-face--back {
  transform: rotateY(180deg);
}

.character-flipbook__closing-face img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
